MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: After the installation of several 3rd-party extensions to the merchant's store, it was noticed the admin panel authentication consistently fails with the credentials used before. Where do you start debugging to understand why the authentication is failing?
Question2: When your class will be instantiated all the dependencies injected in your class constructor will also get instantiated, and it will trigger a chain reaction of object creation, this can really slow down the process. What could be the solution of above problem?
Question3: On a merchant website you inherit an extension that allows customers to rate products. The extension adds two integer attributes to store the rating values, avg_rating and rating_count. The merchant reports an issue that the displayed average is lower than it should be. You determine you need to change the avg_rating attribute backend typetodecim to fix the issue.In your module's Data Patch script, which three steps do you take to change the attribute backend type?A)B)C)D)E)
Question4: You have created a custom block MyCompany MyModule/Block/Product/Update/ php. Which two approaches allow you to set a template to your block?
Question5: You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of \Magento\Cms\Api\BlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version.How do you load the CMS block with the right Staging version?A)B)C)D)
Question6: Consider below command: bin/magento dev:theme:create frontend vendor themename Please select correct options based on it (choose 2):
Question7: Suppose you are working on the product edit page of the backend. Whenever admin-user clicks on the save button, you need to check that the product name should contain SKU as well in it. For this how would you get the product input field element in a variable using uiRegistry :
Question8: You need to do an analysis of Admin actions on the website for a 24 hour period that happened 90 days ago using the Admin actions log. Assuming that the Log Entry Lifetime store configuration setting has not been changed from the default, where do you access the data?
Question9: You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table.How can we create this behavior during the creation of this attribute?A)B)C)D)
Question10: Suppose there are 3 classes: Class A, B and C. Class C have dependecy of Class A You need to overrride/change an argument of class A, create an object of it and inject in Class B in such a way that it should not affect the class C. What should be the magento standard way to do this:
Question11: You are working on a project where many catalog managers often change products in the admin panel.The merchant is considering changing the indexers mode to "Update on Schedule" from "Update on Save" to achieve better performance. However, the merchant is concerned about data consistency and the probability of the scheduled updates being lost.How does Magento store the IDs of updated products for reindex in "Update on Schedule" mode?
Question12: You are working on a project with a large database with many products, sales rules and CMS pages. The merchant is going to use Magento_Staging for scheduled updates, but they were told that use of Staging will modify all SQL queries and slow down website performance.What modification does Magento_Staging make to existing SQL queries?
Question13: Suppose you are working on a specific uicomponet form where front-end customers can update their name and phone number only when the admin user sets the editable_field_flag to 1 for his submitted data from the backend. According to this flag, when loading the data in the form for front-end users, how would you check and customize to enable/disable the name and phone number fields?
Question14: You are working on a project where a custom option of type text for a certain product has been created. The merchant wants to customize the add to cart functionality for this product, such that products with different text for the custom option will be represented as separate shopping cart line items.How does Magento split shopping cart line items for a product based on custom options?
Question15: Consider below example of etc/di.xml: Magento\Filesystem\Adapter\Local Please select correct statement based on shared="false" attribute in the example:
Question16: A client uses an external PIM for managing product information. They want to run a cron job every minute to update and create products. The site is using the "Update by schedule" index mode and the full page cache is enabled.What is required to make these updates visible on the frontend?
Question17: You are debugging an issue where the staged product custom attribute value is not displayed properly. The attribute backend type is varchar. How does Magento store scheduled values for varchar attributes?
Question18: Suppose in a store there are 500 categories and it's increasing as per the need. Let's say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend. What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:
Question19: Suppose you need to add a custom css file in layout XML in such a way that it should load asynchronously to improve the page load performance. What is the correct attribute for this:
Question20: Suppose in the product rest API in Magento, you added a new attribute. But this attribute can be accessed by API consumers only when they have access permission. How do you create the attributes following the above condition:
Question21: You need to create a Magento CLI command to return information from the system. What two steps are necessary?
Question22: You have a requirement to customize the Product Detail Page so users can enter their ID in a custom field and get a personalized price. The user has to see the lower of the personalized and the Magento price.Which two actions do you take to enable the personalized price on the Product Detail Page and the checkout?
Question23: Suppose, you need to create custom configuration file called search.xml, in the a custommodule under etc/. Which steps are needed to achieve this:
Question24: The merchant is planning to use Special Product prices with the date range on their Magento Commerce website. How does Magento Commerce Edition process Special Prices?
Question25: A merchant complains about the related accessory products, which they assigned to the virtual product, not being visible on the store front. What is the reason for this?
Question26: You have created a new gateway payment method. You configured the command pool in a di. xml file and added the MyCompany\MyModule\Gateway\Command\Sale command with the name sale to it. Your Sale command extends the Magento\Payment\Gateway\Command\GatewayCommand class.You have also created a payment_action option in the system configuration and set the value to authorize_capture.You found the sale command is never called when placing an order.Which action will fix the problem?
Question27: Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2
Question28: A merchant has created a segment that applies to registered customers whose gender is female. You then migrate customers by copying data directly from one database to another. What two ways are used to assign migrated customers with a female gender to the segment?
Question29: You are working on a module MyCompany_MyModule which adds a select attribute with a few options using the \Magento\Eav\Setup\EavSetup: :addAttribute() method in data in data install script.There is no uninstall script. While debugging, you have uninstalled the module with the command:bin magento module:uninstall MyCompany_MyModuleThen you reinstalled the module. What will be the effect on the attribute?
Question30: When you reference a factory or proxy in a class constructor, these classes are generated by default inside generated directory, if they are not present in codebase. Which Magento class is resposible for this?
Question31: In a phtml, you added script tag and defined couple of js variables as below:Now to protect it from XSS attacks, which two methods allow you to keep the php variable output XSS-safe?Choose 2
Question32: Magento regenerates the admin URL secret key for each new session. What is the purpose of this key?
Question33: You are working on a project which uses Staging for different entities. You are considering the option to stage and rollback different entities independently. What is the scope of a Staging version in Magento?